package com.zmn.plat.services.impl.gate;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.gate.BaseGate;
import com.zmn.plat.persistence.interfaces.gate.BaseGateDao;
import com.zmn.plat.services.interfaces.gate.BaseGateService;

import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @类描述:
 * @version: 1.0
 * @author guohuixiang
 * @since 2019/11/2
 */
@Slf4j
@Service
public class BaseGateServiceServiceImpl implements BaseGateService {
    private final String TAG = "订单入口gate配置类GateService";
    @Autowired
    private BaseGateDao gateDao;

    @Override
    public BaseGate findByIdAndGateTypeAndStatus(Integer gateId, Integer gateType, Integer status) {
        return gateDao.findByIdAndGateTypeAndStatus(gateId, gateType, status);
    }

    @Override
    public List<BaseGate> listAllGate() {
        return gateDao.listAllGate();
    }

    @Override
    public List<BaseGate> listGateByType(Integer type) {
        return gateDao.listGateByType(type);
    }
}
